﻿<%@ Page AutoEventWireup="true" CodeFile="TaskEvaluate.aspx.cs" Inherits="Evaluate_TaskEvaluate"
    Language="C#" MasterPageFile="~/Evaluate/Evaluate.master" StylesheetTheme="Content"
    Title="Untitled Page" %>

<asp:Content ID="Content1" runat="Server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div id="article">
        <asp:Literal ID="Body" runat="server" EnableViewState="False"></asp:Literal>
    </div>
    <br />
    <table cellspacing="0" cellpadding="0" width="100%" class="intable">
        <caption>
            <span>审核任务</span></caption>
        <tr>
            <td style="width: 80px;">
                任务执行人：
            </td>
            <td>
                <asp:Label ID="UserName" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                任务名称：
            </td>
            <td>
                <asp:Label ID="TaskTitle" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                起止日期：
            </td>
            <td>
                <asp:Label ID="TaskDate" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                任务总分：
            </td>
            <td>
                <asp:Label ID="InitScore" runat="server" ForeColor="#FF3300">0</asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                完成率：
            </td>
            <td>
                <asp:Label ID="Progress" runat="server" Text="0%" ForeColor="#FF3300"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                迟报扣分：
            </td>
            <td>
                <asp:Label runat="server" ID="lblLadePoints" ForeColor="#FF3300">0</asp:Label>
                &nbsp;&nbsp;<asp:Label runat="server" ID="lblladeExplication"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                得分：
            </td>
            <td>
                <asp:Label ID="lblScore" runat="server" ForeColor="#FF3300">0</asp:Label>
            </td>
        </tr>
    </table>
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
        AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
        <asp:ListItem Selected="True" Value="0">项目扣分</asp:ListItem>
        <asp:ListItem Value="1">无扣分审核</asp:ListItem>
    </asp:RadioButtonList>
    <asp:Panel runat="server" ID="panel0">
        <asp:GridView ID="gvReason" runat="server" Width="100%" Caption="<span>扣分条目</span>"
            OnRowDataBound="gvReason_RowDataBound" OnRowCommand="gvReason_RowCommand">
            <Columns>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:Label ID="ID" runat="server"></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle Width="30px" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        扣分原因
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%# Eval("Reason") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        扣分
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%# Eval("Point") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:ImageButton runat="server" ID="btnDelete" ImageUrl="~/Images/delete.gif" CommandName="del"
                            CommandArgument='<%#Eval("Id") %>' OnClientClick="return confirm('是否真的删除所选记录?')" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <HeaderStyle HorizontalAlign="Left" />
        </asp:GridView>
        <table cellspacing="0" cellpadding="0" width="100%" class="intable">
            <caption>
                <span>任务扣分</span>
            </caption>
            <tr runat="server" id="trlitask">
                <td style="width: 80px;">
                    阶段任务：
                </td>
                <td>
                    <asp:DropDownList ID="ddlTask" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr  >
                <td style="width: 80px;">
                    扣分原因：
                </td>
                <td>
                    <asp:TextBox ID="txtReason" runat="server" Height="60px" TextMode="MultiLine" Width="90%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    所扣分数：
                </td>
                <td>
                    <asp:TextBox ID="txtPoint" runat="server" Width="68px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Button ID="ButtonSave" runat="server" Text="扣分" OnClick="ButtonSave_Click" />
                    &nbsp;<asp:Button ID="BtnBreak" runat="server" Text="返回" OnClick="BtnBreak_Click" />
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <asp:Label ID="Prompt" runat="server"></asp:Label>
                    <asp:HiddenField ID="hidDate" runat="server" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel runat="server" ID="panel2">
        <table cellspacing="0" cellpadding="0" width="100%" class="intable">
            <caption>
                <span>评语</span>
            </caption>
            <tr>
                <td align="center">
                    <asp:TextBox ID="txtRemark" runat="server" TextMode="MultiLine" Width="90%" Rows="6"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="Button1" runat="server" Text="审核" OnClick="Button1_Click" />
                    &nbsp;<asp:Button ID="BtnBreak0" runat="server" OnClick="BtnBreak_Click" Text="返回" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>
